//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    count:0
  },
  handleBtnClick(){
    this.setData({
      count: this.data.count+1
    })
  },
  handleSubClick(){
    this.setData({
      count: this.data.count - 1
    })
  },
  handleRestClick(){
    this.setData({
      count: 0
    })
  }
})